import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import TDesign from 'tdesign-vue-next';
import TDesignChat from '@tdesign-vue-next/chat'; // 引入chat组件
import 'tdesign-vue-next/es/style/index.css'; // 引入少量全局样式变量
import './styles/tdesign-theme.css'; // 自定义主题变量覆盖
import 'highlight.js/styles/github-dark.css'; // 代码高亮主题

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(TDesign).use(TDesignChat);

app.mount('#app')

// 可选：全局快速切换暗色模式示例
// document.documentElement.setAttribute('data-theme', 'dark')
